export function translateProductSelectOptions(data) {
    return data.map(function (v) {
        v.label = v.product_name;
        v.value = v.hash;
        return v;
    }) || [];
}

export function translateProductFunctionsSelectOptions(data) {
    return data.map(function (v) {
        v.label = v.remark;
        v.value = v.fn_id;
        return v;
    }) || [];
}

export function translateSeletionCooperateUserTypeOptions(data) {
    return data.map(function (v) {
        v.label = v.name;
        v.value = v.id;
        return v;
    }) || [];
}